export default {
  namespaced: true,
  state: {
    id: '',
    account: '',
    avatar: '',
    token: '',
    mobile: ''
  },
  mutations: {
    setUser (state, payload) {
      for (const key in state) {
        state[key] = payload[key]
      }
    }
  }
}
